package com.cfuture08.home.action;

import com.cfuture08.eweb4j.component.dwz.DWZUtil;
import com.cfuture08.eweb4j.component.dwz.UlTag;
import com.cfuture08.eweb4j.component.json.JsonConverter;
import com.cfuture08.eweb4j.config.EWeb4JConfig;
import com.cfuture08.eweb4j.jdbc.JdbcTemplate;
import com.cfuture08.eweb4j.jdbc.sql.SqlFactory;
import com.cfuture08.eweb4j.mvc.action.Action;
import com.cfuture08.eweb4j.mvc.action.ActionSupport;
import com.cfuture08.home.vo.Message;
import com.cfuture08.home.vo.User;

public class ShowBackIndex extends ActionSupport {

	public String execute() {
		// 后台标题
		this.request.setAttribute("title", "CFuture工作室荣誉产品");
		// 后台菜单树
		UlTag menuRoot = DWZUtil.getUlTag();
		this.request.setAttribute("menuTree", menuRoot.toString());

		return Action.SUCCESS;
	}

	public static void main(String[] args) throws Exception {
		String error = EWeb4JConfig.start();
		if (error == null) {
			User user = new User();
			user.setNickName("xxxx");
			Message message = new Message();
			message.setNickName("weiwei");
			message.setContent("xsdfasdfsadf");
			System.out.println(JsonConverter.convert(new String[]{"xxxx"}));
			
		}else{
			System.out.println(error);
		}
	}
}
